import axios from './index'
import request from 'axios'
// 获取枸杞品牌排行榜
export const getBrandList = (param) => {
  return axios.httpRequest({
    url: 'assets/json/brandList.json',
    method: 'get',
    data: param
  })
}
// 获取枸杞品牌排行榜(本地json文件数据)
export const getBrandData = (param) => {
  return new Promise((resolve, reject) => {
    request.get('static/json/brandList.json').then(res => {
      console.log(res)
      resolve(res)
    }).catch(error => {
      reject(error)
    })
  })
}
